package com.yanchangapp.commom;

import android.os.Environment;

import com.zxl.baselib.commom.BaseAppConst;

import java.io.File;

/**
 * @author zxl on 2018/6/30.
 *         discription: 常量
 */

public class AppConstant extends BaseAppConst{
    public static final String TEST_EVENTBUS = "eventbus";
    // 是否正在测试
    public static final boolean IS_TESTING = true;

    public static final int REQUEST_SUCCESS = 0;

    public static final int ONE_PAGE_SIZE = 10;

    public static final int FIRST_PAGE_NUM = 1;

    public static final String EXTRA_ORIFIN_LOGIN = "EXTRA_ORIFIN_LOGIN";

    // 线上
    public static final String LOOK_ATTACHMENT ="https://ftp.wjsci.com:8012/onlinePreview?url=";

    // 测试
    //public static final String LOOK_ATTACHMENT ="http://192.168.1.23:8022/onlinePreview?url=";

    // uat环境
    // public static final String LOOK_ATTACHMENT ="https://ftpuat.wjsci.com:8012/onlinePreview?url=";


    // 消息未读
    public static final int MSG_UN_READ = 0;
    // 邮件未读
    public static final int MAIL_UN_READ = 0;
    // 邮件已读
    public static final int MAIL_HAS_READ = 1;
    // 通知删除邮件成功
    public static final String NOTIFY_MAIL_DELETE_SUCCESS = "notify_mail_delete_success";
    // 搜索 删除
    public static final String NOTIFY_SEARCH_DELETE_SUCCESS = "notify_search_delete_success";
    // 通知写信成功...
    public static final String NOTIFY_MAIL_WRITE_SUCCESS = "notify_mail_write_success";

    public static final String NOTIFY_SEARCH_WRITE_SUCCESS = "notify_search_write_success";
    // 通知保存草稿成功
    public static final String NOTIFY_MAIL_SAVE_DRAFT_SUCCESS = "notify_mail_save_draft_success";
    // 搜索 草稿
    public static final String NOTIFY_SEARCH_SAVE_DRAFT_SUCCESS = "notify_search_save_draft_success";

    public static final int FLAG_IS_USER = 3;

    public static final int RECODE_FILTER_ATY = 1000;
    public static final int RECODE_CONTRACT_FILTER_ATY = 1001;
    public static final int AC_BACK_FROM_APPROVE = 1002;
    public static final int RECODE_NOT_FINISH_PLAN = 1003;
    public static final int RECODE_FINISH_PLAN = 1004;
    public static final int RECODE_FROM_HISTOTY_DETAIL = 1005;
    public static final int RECODE_FROM_ADD_FINISH = 1006;

    // 文件路径
    public final static String DEFAULT_SAVE_FILE_PATH = Environment
            .getExternalStorageDirectory()
            + File.separator
            + "daqiao"
            + File.separator + "download" + File.separator;
}
